﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using RayDen.Library.Components.Color.Types;
using RayDen.Library.Core.Primitives;

namespace RayEngine.Spectral.Entities.Textures
{
    public sealed class ConstantTexture : BaseTexture<IColorType>
    {
        public ConstantTexture(int id, IColorType val) : base(id, val)
        {
        }

        public override IColorType Evaluate(float u, float v)
        {
            return value;
        }

        public override IColorType Evaluate(ShadePointInfo point)
        {
            return value;
        }
    }
}
